<?php
namespace zzcms\primary\controller;

/**
 * 关键词
 * Class Keywords
 * @package zzcms\apimobile\controller
 */
class Keywords extends Base
{
    protected $model;

    protected function initialize()
    {
        parent::initialize();
        $this->model = new \zzcms\admin\model\News();
    }

    /**
     * 默认关键词
     * http://www.posji.com/apimobile/Keywords/defaultKeyword.html
     */
    public function defaultKeyword()
    {
        $this->array2json(['code' => 0, 'msg' => 'ok', 'data' => '乐刷']);
    }


    /**
     * 热门关键词
     * http://www.posji.com/apimobile/Keywords/hotKeyword.html
     */
    public function hotKeyword()
    {
        $data = [
            '乐刷',
            '瑞刷',
            '通刷',
            '瑞付宝',
        ];
        $this->array2json(['code' => 0, 'msg' => 'ok', 'data' => $data]);
    }


}
